package com.ruoyi.custom.kami.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * list对象 cms_kami
 * 
 * @author ruoyi
 * @date 2024-04-24
 */
public class CmsKami extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 卡密id */
    private Long id;

    /** 卡密 */
    @Excel(name = "卡密")
    private String cardPasswd;

    /** 客户标识 */
    @Excel(name = "客户标识")
    private String kehu;

    /** 1:天  7：天  30：天  356：天 直接记录数字 */
    @Excel(name = "1:天  7：天  30：天  356：天 直接记录数字")
    private Long enUse;

    /** 是否可用 */
    @Excel(name = "是否可用")
    private Long enable;

    /** 使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "使用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date usedTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCardPasswd(String cardPasswd) 
    {
        this.cardPasswd = cardPasswd;
    }

    public String getCardPasswd() 
    {
        return cardPasswd;
    }
    public void setKehu(String kehu) 
    {
        this.kehu = kehu;
    }

    public String getKehu() 
    {
        return kehu;
    }
    public void setEnUse(Long enUse) 
    {
        this.enUse = enUse;
    }

    public Long getEnUse() 
    {
        return enUse;
    }
    public void setEnable(Long enable) 
    {
        this.enable = enable;
    }

    public Long getEnable() 
    {
        return enable;
    }
    public void setUsedTime(Date usedTime)
    {
        this.usedTime = usedTime;
    }

    public Date getUsedTime() 
    {
        return usedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cardPasswd", getCardPasswd())
            .append("kehu", getKehu())
            .append("enUse", getEnUse())
            .append("enable", getEnable())
            .append("createTime", getCreateTime())
            .append("usedTime", getUsedTime())
            .toString();
    }
}
